package com.example.demo.client;

import com.example.demo.client.fallback.RemoteClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "remote-provider", url = "http://www.remote.com", fallback = RemoteClientFallback.class)
public interface RemoteClient {

    @PostMapping("/hello")
    String hello(@RequestBody String json);

}